from django.contrib import admin
from .models import Lesson, Comment, User
# Register your models here.

class CommentInLine(admin.StackedInline):
    model = Comment
    extra = 1

class UserAdmin(admin.ModelAdmin):
    inlines = [CommentInLine]

admin.site.register(Lesson)
admin.site.register(Comment)
admin.site.register(User, UserAdmin)
